// 开发环境
// const heroList = [
//   { name: "一方通行", path: "/images/一方通行.jpg", grade: 1, className: "one" },
//   { name: "七宫智音", path: "/images/七宫智音.jpg", grade: 1, className: "one" },
//   { name: "七罪", path: "/images/七罪.jpg", grade: 1, className: "one" },
//   { name: "五河琴里", path: "/images/五河琴里.jpg", grade: 1, className: "one" },
//   { name: "亚丝娜 ", path: "/images/亚丝娜 .jpg", grade: 1, className: "one" },
//   { name: "佐助", path: "/images/佐助.jpg", grade: 1, className: "one" },
//   { name: "利威尔", path: "/images/利威尔.jpg", grade: 1, className: "one" },
//   { name: "千反田", path: "/images/千反田.jpg", grade: 1, className: "one" },
//   { name: "卡卡西", path: "/images/卡卡西.jpg", grade: 1, className: "one" },
//   { name: "卫宫士郎", path: "/images/卫宫士郎.jpg", grade: 1, className: "one" },
//   { name: "四宫辉夜", path: "/images/四宫辉夜.jpg", grade: 1, className: "one" },
//   { name: "四糸乃", path: "/images/四糸乃.jpg", grade: 1, className: "one" },
//   { name: "土间埋", path: "/images/土间埋.jpg", grade: 2, className: "two" },
//   { name: "坂柳有栖", path: "/images/坂柳有栖.jpg", grade: 2, className: "two" },
//   { name: "夏目", path: "/images/夏目.jpg", grade: 2, className: "two" },
//   { name: "夜刀神十香", path: "/images/夜刀神十香.jpg", grade: 2, className: "two" },
//   { name: "夜夜", path: "/images/夜夜.jpg", grade: 2, className: "two" },
//   { name: "太宰治", path: "/images/太宰治.jpg", grade: 2, className: "two" },
//   { name: "宫园薰", path: "/images/宫园薰.jpg", grade: 2, className: "two" },
//   { name: "小御坂", path: "/images/小御坂.jpg", grade: 2, className: "two" },
//   { name: "小鸟游六花", path: "/images/小鸟游六花.jpg", grade: 2, className: "two" },
//   { name: "岸边露伴", path: "/images/岸边露伴.jpg", grade: 2, className: "two" },
//   { name: "康娜", path: "/images/康娜.jpg", grade: 2, className: "two" },
//   { name: "御坂美琴", path: "/images/御坂美琴.jpg", grade: 2, className: "two" },
//   { name: "托尔", path: "/images/托尔.jpg", grade: 3, className: "three" },
//   { name: "拉芙塔莉雅", path: "/images/拉芙塔莉雅.jpg", grade: 3, className: "three" },
//   { name: "时崎狂三", path: "/images/时崎狂三.jpg", grade: 3, className: "three" },
//   { name: "星宫六喰", path: "/images/星宫六喰.jpg", grade: 3, className: "three" },
//   { name: "村雨令音", path: "/images/村雨令音.jpg", grade: 3, className: "three" },
//   { name: "栗山未来", path: "/images/栗山未来.jpg", grade: 3, className: "three" },
//   { name: "漩涡鸣人", path: "/images/漩涡鸣人.jpg", grade: 3, className: "three" },
//   { name: "白井黑子", path: "/images/白井黑子.jpg", grade: 3, className: "three" },
//   { name: "白鬼院", path: "/images/白鬼院.jpg", grade: 3, className: "three" },
//   { name: "米莉姆", path: "/images/米莉姆.jpg", grade: 3, className: "three" },
//   { name: "索隆", path: "/images/索隆.jpg", grade: 4, className: "four" },
//   { name: "绫小路", path: "/images/绫小路.jpg", grade: 4, className: "four" },
//   { name: "茵蒂克丝", path: "/images/茵蒂克丝.jpg", grade: 4, className: "four" },
//   { name: "薇尔莉特", path: "/images/薇尔莉特.jpg", grade: 4, className: "four" },
//   { name: "蝶祁", path: "/images/蝶祁.jpg", grade: 4, className: "four" },
//   { name: "诱宵美九", path: "/images/诱宵美九.jpg", grade: 4, className: "four" },
//   { name: "贞德", path: "/images/贞德.jpg", grade: 4, className: "four" },
//   { name: "达克妮斯", path: "/images/达克妮斯.jpg", grade: 4, className: "four" },
//   { name: "金木研", path: "/images/金木研.jpg", grade: 4, className: "four" },
//   { name: "阎魔爱", path: "/images/阎魔爱.jpg", grade: 5, className: "five" },
//   { name: "阿库娅", path: "/images/阿库娅.jpg", grade: 5, className: "five" },
//   { name: "面码", path: "/images/面码.jpg", grade: 5, className: "five" },
//   { name: "鸢一折纸", path: "/images/鸢一折纸.jpg", grade: 5, className: "five" },
//   { name: "鸣瓢秋", path: "/images/鸣瓢秋.jpg", grade: 5, className: "five" },
//   { name: "黄昏", path: "/images/黄昏.jpg", grade: 5, className: "five" },
//   { name: "齐木楠雄", path: "/images/齐木楠雄.jpg", grade: 5, className: "five" }
// ]

// 生产环境
const heroList = [
  { name: "一方通行", path: "/images/一方通行.jpg", grade: 1, className: "one" },
  { name: "七宫智音", path: "/images/七宫智音.jpg", grade: 1, className: "one" },
  { name: "七罪", path: "/images/七罪.jpg", grade: 1, className: "one" },
  { name: "五河琴里", path: "/images/五河琴里.jpg", grade: 1, className: "one" },
  { name: "亚丝娜 ", path: "/images/亚丝娜 .jpg", grade: 1, className: "one" },
  { name: "佐助", path: "/images/佐助.jpg", grade: 1, className: "one" },
  { name: "利威尔", path: "/images/利威尔.jpg", grade: 1, className: "one" },
  { name: "千反田", path: "/images/千反田.jpg", grade: 1, className: "one" },
  { name: "卡卡西", path: "/images/卡卡西.jpg", grade: 1, className: "one" },
  { name: "卫宫士郎", path: "/images/卫宫士郎.jpg", grade: 1, className: "one" },
  { name: "四宫辉夜", path: "/images/四宫辉夜.jpg", grade: 1, className: "one" },
  { name: "四糸乃", path: "/images/四糸乃.jpg", grade: 1, className: "one" },
  { name: "土间埋", path: "/images/土间埋.jpg", grade: 2, className: "two" },
  { name: "坂柳有栖", path: "/images/坂柳有栖.jpg", grade: 2, className: "two" },
  { name: "夏目", path: "/images/夏目.jpg", grade: 2, className: "two" },
  { name: "夜刀神十香", path: "/images/夜刀神十香.jpg", grade: 2, className: "two" },
  { name: "夜夜", path: "/images/夜夜.jpg", grade: 2, className: "two" },
  { name: "太宰治", path: "/images/太宰治.jpg", grade: 2, className: "two" },
  { name: "宫园薰", path: "/images/宫园薰.jpg", grade: 2, className: "two" },
  { name: "小御坂", path: "/images/小御坂.jpg", grade: 2, className: "two" },
  { name: "小鸟游六花", path: "/images/小鸟游六花.jpg", grade: 2, className: "two" },
  { name: "岸边露伴", path: "/images/岸边露伴.jpg", grade: 2, className: "two" },
  { name: "康娜", path: "/images/康娜.jpg", grade: 2, className: "two" },
  { name: "御坂美琴", path: "/images/御坂美琴.jpg", grade: 2, className: "two" },
  { name: "托尔", path: "/images/托尔.jpg", grade: 3, className: "three" },
  { name: "拉芙塔莉雅", path: "/images/拉芙塔莉雅.jpg", grade: 3, className: "three" },
  { name: "时崎狂三", path: "/images/时崎狂三.jpg", grade: 3, className: "three" },
  { name: "星宫六喰", path: "/images/星宫六喰.jpg", grade: 3, className: "three" },
  { name: "村雨令音", path: "/images/村雨令音.jpg", grade: 3, className: "three" },
  { name: "栗山未来", path: "/images/栗山未来.jpg", grade: 3, className: "three" },
  { name: "漩涡鸣人", path: "/images/漩涡鸣人.jpg", grade: 3, className: "three" },
  { name: "白井黑子", path: "/images/白井黑子.jpg", grade: 3, className: "three" },
  { name: "白鬼院", path: "/images/白鬼院.jpg", grade: 3, className: "three" },
  { name: "米莉姆", path: "/images/米莉姆.jpg", grade: 3, className: "three" },
  { name: "索隆", path: "/images/索隆.jpg", grade: 4, className: "four" },
  { name: "绫小路", path: "/images/绫小路.jpg", grade: 4, className: "four" },
  { name: "茵蒂克丝", path: "/images/茵蒂克丝.jpg", grade: 4, className: "four" },
  { name: "薇尔莉特", path: "/images/薇尔莉特.jpg", grade: 4, className: "four" },
  { name: "蝶祁", path: "/images/蝶祁.jpg", grade: 4, className: "four" },
  { name: "诱宵美九", path: "/images/诱宵美九.jpg", grade: 4, className: "four" },
  { name: "贞德", path: "/images/贞德.jpg", grade: 4, className: "four" },
  { name: "达克妮斯", path: "/images/达克妮斯.jpg", grade: 4, className: "four" },
  { name: "金木研", path: "/images/金木研.jpg", grade: 4, className: "four" },
  { name: "阎魔爱", path: "/images/阎魔爱.jpg", grade: 5, className: "five" },
  { name: "阿库娅", path: "/images/阿库娅.jpg", grade: 5, className: "five" },
  { name: "面码", path: "/images/面码.jpg", grade: 5, className: "five" },
  { name: "鸢一折纸", path: "/images/鸢一折纸.jpg", grade: 5, className: "five" },
  { name: "鸣瓢秋", path: "/images/鸣瓢秋.jpg", grade: 5, className: "five" },
  { name: "黄昏", path: "/images/黄昏.jpg", grade: 5, className: "five" },
  { name: "齐木楠雄", path: "/images/齐木楠雄.jpg", grade: 5, className: "five" }
].map(item => {
  item.path = "/jcc" + item.path
  return item
})

const lvToExp = new Map([
  [1, { exp: 2, chance: [1, 0, 0, 0, 0] }],
  [2, { exp: 4, chance: [0.9, 0.1, 0, 0, 0] }],
  [3, { exp: 6, chance: [0.75, 0.25, 0, 0, 0] }],
  [4, { exp: 10, chance: [0.55, 0.3, 0.15, 0, 0] }],
  [5, { exp: 20, chance: [0.45, 0.33, 0.2, 0.02, 0] }],
  [6, { exp: 36, chance: [0.25, 0.4, 0.3, 0.05, 0] }],
  [7, { exp: 56, chance: [0.19, 0.3, 0.35, 0.15, 0.01] }],
  [8, { exp: 80, chance: [0.16, 0.2, 0.35, 0.25, 0.04] }],
  [9, { exp: 9999, chance: [0.09, 0.15, 0.3, 0.3, 0.16] }]
])